package com.aiyige.base.eventbus;

import com.aiyige.base.db.table.InfoModel;
import com.aiyige.base.db.table.SpecialTopicDBModel;

/**
 * Created by zhuyakun on 2017/12/6.
 */

public class EventEditSpecialTopicFinish {
    public static final int RESULT_OK = 1;
    public static final int RESULT_CANCEL = 2;
    int resultCode;
    SpecialTopicDBModel specialTopicDBModel;

    public EventEditSpecialTopicFinish() {
    }

    private EventEditSpecialTopicFinish(Builder builder) {
        setResultCode(builder.resultCode);
        setSpecialTopicDBModel(builder.specialTopicDBModel);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public SpecialTopicDBModel getSpecialTopicDBModel() {
        return specialTopicDBModel;
    }

    public void setSpecialTopicDBModel(SpecialTopicDBModel specialTopicDBModel) {
        this.specialTopicDBModel = specialTopicDBModel;
    }

    public static final class Builder {
        private int resultCode;
        private SpecialTopicDBModel specialTopicDBModel;

        private Builder() {
        }

        public Builder resultCode(int val) {
            resultCode = val;
            return this;
        }

        public Builder specialTopicDBModel(SpecialTopicDBModel val) {
            specialTopicDBModel = val;
            return this;
        }

        public EventEditSpecialTopicFinish build() {
            return new EventEditSpecialTopicFinish(this);
        }
    }
}
